﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Domain;

namespace Happy.Activities.Domain.WorkflowInstances
{
    /// <summary>
    /// 路由实例。
    /// </summary>
    public class RouterInstance : Entity<Guid>
    {
        /// <summary>
        /// 源活动实例标识。
        /// </summary>
        public Guid FromInstanceId { get; internal set; }

        /// <summary>
        /// 目标活动实例标识。
        /// </summary>
        public Guid ToInstanceId { get; internal set; }

        /// <summary>
        /// 分流记号。
        /// </summary>
        public string SplitToken { get; internal set; }

        /// <summary>
        /// 路由定义标识。
        /// </summary>
        public Guid RouterId { get; internal set; }

        /// <summary>
        /// 流程实例标识。
        /// </summary>
        public Guid WorkflowInstanceId { get; internal set; }
    }
}
